home *** CD-ROM | disk | FTP | other *** search
- Path: news.unt.edu!news
- From: Steve Fogoros <sfogoros@hsc.unt.edu>
- Newsgroups: comp.lang.c
- Subject: Re: Fractals
- Date: Wed, 06 Mar 1996 09:40:54 -0800
- Organization: University of North Texas Health Science Center
- Message-ID: <313DCE26.6F0F@hsc.unt.edu>
- References: <4hhv43$49i@sunburst.ccs.yorku.ca> <4hibr0INN7s1@gambier.ugrad.cs.ubc.ca> <313D1AF1.4A22@hsc.unt.edu> <4hjm6pINN44r@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: sfogoros.hsc.unt.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Kazimir Kylheku wrote:
-
- > ...
- >
- > >>
- > >> Then you compute the fractal using whatever iterative formula you wish, such as
- > >>
- > >> z = z^2 + C
- > >
- > >When you used the ^ symbol, did you intend to indicate 2 as an exponent of z or bitwise exclusive or?
- >
- > Exponent, sorry. That was not intended to be a C statement. (And in fact it
- > could not be, since C does not let you overload operators to support a complex
- > type that way).
- >
- > By the way, what would be the meaning of doing an XOR between a floating point
- > complex number and 2?
-
- Ok, I knew that XOR would be illogical in this context because of the complex number. I should have posed
- a real question instead of just pointing out use of a C bitwise operator in a math expression illustrating
- exponentiation (I'm sorry about that).
-
- The question is regarding the correct, standard, and generally accepted forms of writing exponentiation in
- C code and in documentation. I've seen z**2 in documentation that I always interpreted as exponentiation.
- And, I know that the BASIC language has the exponent operator ^. I have avoided using ^ in the past
- because of these variations. I am interested in your opinion on this topic. Uh-Oh, did I turn this RE:
- Fractals into something that should be posted with a different subject?
-
- --
- Steve Fogoros, Academic Information Coordinator
- University of North Texas Health Science Center
- sfogoros@hsc.unt.edu
-